//
//  SQPointListView.m
//  pai
//
//  Created by pro on 14-12-5.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import "SQPointListView.h"

@implementation SQPointListView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}
+(SQPointListView*)initmyview
{
    NSArray* nibView =  [[NSBundle mainBundle] loadNibNamed:@"SQPointListView" owner:nil options:nil];
    return [nibView objectAtIndex:0];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (IBAction)doActionPointsInfo:(id)sender {
    if (self.delegate) {
        [self.delegate getPointsInfo];
    }
}
-(void)setInfo:(NSString*)points totalPoints:(NSString*)totalpoints
{
    self.nowPointsLabel.text = points;
    self.totalPointsLabel.text = totalpoints;
}
@end
